package com.ala4.oxcafe.service;

import com.ala4.oxcafe.boot.page.PageDomain;
import com.ala4.oxcafe.entity.DictData;
import com.ala4.oxcafe.entity.DictType;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 字典数据服务
 *
 * @author PING
 * @version 1.0.0
 * @date 2025/8/14 10:36
 */
public interface DictInfoService {

    /**
     * 分页查询字典类型
     *
     * @param pageDomain
     * @param dictType
     * @return
     */
    IPage<DictType> dictTypePage(PageDomain pageDomain, DictType dictType);

    /**
     * 更具字典类型查询字典数据
     *
     * @param typeCode
     * @return
     */
    List<DictData> dictData(String typeCode);
}
